﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentManagementSystem.Models
{
    public class Class
    {
        public int Id { get; set; }
        public int SchoolName { get; set; }  // 关联到学校的ID
        public string Name { get; set; }
        public virtual School School { get; set; }  // 外键关系，指向学校
        public virtual ICollection<Student> Students { get; set; }  // 一个班级有多个学生
    }
}
